﻿#pragma once

#include "../MonsterObject.h"
#include "../../MirDatabase/MonsterInfo.h"
#include "../PlayerObject.h"
#include "../../../Shared/Enums.h"
#include "exceptionhelper.h"

using namespace Server::MirDatabase;

namespace Server::MirObjects::Monsters
{
    class Football : public MonsterObject
    {
    protected:
        bool getCanAttack() const override;

    private:
        int _ballMoveDistance = 4;

    protected:
        Football(MonsterInfo *info);

        void FindTarget() override;

        void ProcessTarget() override;

    public:
        bool IsAttackTarget(MonsterObject *attacker) override;

        int Attacked(PlayerObject *attacker, int damage, DefenceType type = DefenceType::ACAgility, bool damageWeapon = true) override;
        int Attacked(MonsterObject *attacker, int damage, DefenceType type = DefenceType::ACAgility) override;

        int Struck(int damage, DefenceType type = DefenceType::ACAgility) override;

        void Die() override;
    };
}
